import App from './App'
import uView from '@/uni_modules/uview-ui'
import main from "@/mixin/mian.js"
import store from './store'
import {
	request,
	showToast,
	api
} from './static/js/common'
// #ifndef VUE3
import Vue from 'vue'
Vue.use(uView)
Vue.mixin(main)
Vue.prototype.$request = request
Vue.prototype.$showToast = showToast
Vue.prototype.$store = store;
Vue.prototype.$api = api
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif